package com.yiwei.hdb.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xsooy-pc on 18-7-9.
 */

public class CertificationBasicsModel extends ResponseModel implements Parcelable {


    public ArrayList<DataBean> data;

    public static class DataBean implements Parcelable {
        /**
         * id : 2
         * name : 身份认证
         * rewards : 20
         * remark : realname
         * groups : basic
         * iscert : 0
         */

        public String id;
        public String name;
        public String rewards;
        public String remark;
        public String groups;
        public String iscert;

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.name);
            dest.writeString(this.rewards);
            dest.writeString(this.remark);
            dest.writeString(this.groups);
            dest.writeString(this.iscert);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.id = in.readString();
            this.name = in.readString();
            this.rewards = in.readString();
            this.remark = in.readString();
            this.groups = in.readString();
            this.iscert = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.data);
    }

    public CertificationBasicsModel() {
    }

    protected CertificationBasicsModel(Parcel in) {
        this.data = new ArrayList<DataBean>();
        in.readList(this.data, DataBean.class.getClassLoader());
    }

    public static final Creator<CertificationBasicsModel> CREATOR = new Creator<CertificationBasicsModel>() {
        @Override
        public CertificationBasicsModel createFromParcel(Parcel source) {
            return new CertificationBasicsModel(source);
        }

        @Override
        public CertificationBasicsModel[] newArray(int size) {
            return new CertificationBasicsModel[size];
        }
    };
}
